<?php /* Smarty version 2.6.26, created on 2015-08-01 18:39:44
         compiled from member.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'string_format', 'member.html', 15, false),array('modifier', 'date_format', 'member.html', 37, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<link rel="stylesheet" href="./Public/Home/Css/member.css" />
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => '../Common/nav.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<!--------------------中部-------------------->
	<div id='center'>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../Common/memberLeft.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		<div id='right'>
	
			<p class='title'>我的首页</p>

			<ul class='property'>
				<li>金币：<span><?php echo $this->_tpl_vars['userinfo']['point']; ?>
</span></li>
				<li>经验值：<span><?php echo $this->_tpl_vars['userinfo']['exp']; ?>
</span></li>
				<li>采纳率：<span><?php if ($this->_tpl_vars['userinfo']['answer'] == 0): ?> 0 <?php else: ?> <?php echo ((is_array($_tmp=$this->_tpl_vars['userinfo']['accept']/$this->_tpl_vars['userinfo']['answer']*100)) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.2f") : smarty_modifier_string_format($_tmp, "%.2f")); ?>
 <?php endif; ?>%</span></li>
			</ul>
			<div class='list'>
				<p><span>我的提问 <b>(共<?php echo $this->_tpl_vars['totalMyAsk']; ?>
条)</b></span><a href="">更多>></a></p>
				<table>
					<?php if (! $this->_tpl_vars['myAsk']): ?>
						<tr height='140'>
							<td>你还没有进行过提问</td>
						</tr>
					<?php else: ?>
						
						<tr>
							<th class='t1'>标题</th>
							<th>回答数</th>
							<th class='t3'>更新时间</th>
						</tr>
						<?php $_from = $this->_tpl_vars['myAsk']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>
						<tr>
							<td class='t1'>
								<a href="./index.php?c=show&asid=<?php echo $this->_tpl_vars['v']['asid']; ?>
"><?php echo $this->_tpl_vars['v']['content']; ?>
</a><span>[<?php echo $this->_tpl_vars['v']['title']; ?>
]</span>
							</td>
							<td><?php echo $this->_tpl_vars['v']['answer']; ?>
</td>
							<td class='t3'><?php echo ((is_array($_tmp=$this->_tpl_vars['v']['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M")); ?>
</td>
						</tr>
						<?php endforeach; endif; unset($_from); ?>
					<?php endif; ?>	
				</table>
			</div>
			<div class='list'>
				<p><span>我的回答 <b>(共<?php echo $this->_tpl_vars['totalMyAnswer']; ?>
条)</b></span><a href="">更多>></a></p>
				<table>
				<?php if (! $this->_tpl_vars['myAnswer']): ?>
					<tr height='140'>
						<td>你还没有进行过回答</td>
					</tr>
				<?php else: ?>
					<tr>
						<th class='t1'>标题</th>
						<th>回答</th>
						<th class='t3'>更新时间</th>
					</tr>
					<?php $_from = $this->_tpl_vars['myAnswer']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>
					<tr>
						<td class='t1'>
							<a href=""><?php echo $this->_tpl_vars['v']['acontent']; ?>
</a><span>[<?php echo $this->_tpl_vars['v']['title']; ?>
]</span>
						</td>
						<td><?php echo $this->_tpl_vars['v']['answer']; ?>
</td>
						<td class='t3'><?php echo ((is_array($_tmp=$this->_tpl_vars['v']['antime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M")); ?>
</td>
					</tr>
					<?php endforeach; endif; unset($_from); ?>
				<?php endif; ?>
				</table>
			</div>
		</div>
	</div>
<!--------------------中部结束-------------------->

<!--------------------底部-------------------->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => '../Common/footer.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>